<?php
/**
 * common repository file Created by PhpStorm.
 * User: wumengmeng
 * Date: 2019/12/11
 * Time: 17:37
 */

namespace HiCommon\Repository;

use HiCommon\Model\VehicleModel;

class VehicleModelRepository extends BaseRepository
{
    public function base_model()
    {
        return new \HiCommon\Model\VehicleModel();
    }

    /**
     * 通过where获取一条数据
     *
     * @param array $arr_where
     * @param array $arr_option
     *
     * @return mixed
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function get_one_by_where($n_id, $arr_field = ['*'])
    {
        return VehicleModel::select($arr_field)->find($n_id);
    }
}